package com.todo.component.redis.generator;


import com.todo.component.redis.RedisKey;

/**
 * @author zhangwenxiang
 * @date 2024/4/8 15:59
 * @description
 */
public class UserKeyGenerator {

    public static String getUserAccountInfoKey(String userName) {
        return String.format(RedisKey.USER_ACCOUNT_CACHE, userName);
    }

    public static String getUserDetailKey(Long userId) {
        return String.format(RedisKey.USER_DETAIL_CACHE, userId);
    }

    public static String getAuthCodeKey(String telephone) {
        return String.format(RedisKey.USER_AUTH_CODE_PHONE_CACHE, telephone);
    }
}
